import React from 'react';
import { HashRouter, Route, Routes } from 'react-router-dom';
import Login from '@/views/Login';
import Widget from '@/Widget';


const Router: React.FC = () => {
	{
		/* 所有的路由配置均在 HashRouter 内部 */
	}
	return (
		<HashRouter>
			<Routes>
				<Route path="/" element={<Widget />} />
				<Route path="/login" element={<Login />} />
				{/* 重定向到首页 */}
				{/* <Route path="*" element={<Navigate to="/" />} /> */}
			</Routes>
		</HashRouter>
	);
};

export default Router;
